<template>
	<view class="harvester">
		<navBar :title="title" left-icon="back" :isBackGround="false" @onLeftIcon="onLeftIcon"></navBar>
	</view>
</template>

<script>
	import navBar from '@/components/navbar/index.vue'
	export default {
		components:{
			navBar,
		},
		  data() {
		    return {
		        items: ['详情', '报警信息', '连接信息',"历史数据"],
		        current: 0,
				id:'',
				title:"",
		    };
		  },
		methods: {
			onClickItem(e) {
			  if (this.current != e.currentIndex) {
			    this.current = e.currentIndex;
			  }
			},
			onLeftIcon(){
				uni.navigateBack()
			}
		},
		onLoad(params) {
			this.id = params.id || ""
			this.title = (params.title + params.sn) || ""
		}
	}
</script>

<style>

</style>
